﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="InserirDepoimento.aspx.cs" Inherits="CursoUNICEUB.InserirDepoimento" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style4
        {
            width: 7px;
        }
        .style5
        {
            width: 81px;
        }
    #TextArea1
    {
        height: 89px;
        width: 246px;
    }
    #TextArea2
    {
        width: 245px;
        height: 85px;
    }
    #txtDepoimento
    {
        }
    #txtComentario
    {
        }
    #txtDepoimento0
    {
        height: 92px;
        width: 517px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div _designerregion="0">
        <table style="width:100%;">
            <tr>
                <td class="style5">
                    <asp:Label ID="Label1" runat="server" Text="Aluno:"></asp:Label>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    <asp:DropDownList ID="ddlAluno" runat="server" Height="22px" Width="248px" 
                        DataSourceID="LinqDataSource1" DataTextField="Nome" DataValueField="Codigo">
                    </asp:DropDownList>
                    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                        ContextTypeName="FastDATA.DCCursoDataContext" EntityTypeName="" OrderBy="Nome" 
                        Select="new (Codigo, Nome)" TableName="DEAlunos" Where="STPago == @STPago">
                        <WhereParameters>
                            <asp:Parameter DefaultValue="true" Name="STPago" Type="Boolean" />
                        </WhereParameters>
                    </asp:LinqDataSource>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="ddlAluno" Display="Dynamic" ErrorMessage="Campo Aluno Obrigatório" 
                        ForeColor="Red" ValidationGroup="mostrar">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style5">
                    <asp:Label ID="Label2" runat="server" Text="Depoimento:"></asp:Label>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    <asp:TextBox runat="server" id="txtDepoimento" TextMode="MultiLine" 
                        Height="110px" Width="509px" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txtComentario" Display="Dynamic" 
                        ErrorMessage="Campo Depoimento Obrigatório" ForeColor="Red" 
                        ValidationGroup="mostrar">*</asp:RequiredFieldValidator>
                    </td>
            </tr>
            <tr>
                <td class="style5">
                    <asp:Label ID="Label3" runat="server" Text="Comentario:"></asp:Label>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    <asp:TextBox runat="server" id="txtComentario" TextMode="MultiLine" 
                        Height="110px" Width="509px" MaxLength="500" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="txtDepoimento" Display="Dynamic" 
                        ErrorMessage="Campo Comentário Obrigatório" ForeColor="Red" 
                        ValidationGroup="mostrar">*</asp:RequiredFieldValidator>
                    </td>
            </tr>
            <tr>
                <td class="style5">
                    <asp:Button ID="btnInserir" runat="server" onclick="btnInserir_Click" 
                        Text="Inserir" ValidationGroup="mostrar" />
                    <asp:ValidationSummary ID="ValidationSummary2" runat="server" 
                        HeaderText="Verifique os seguinte campos" ShowMessageBox="True" 
                        ShowSummary="False" ValidationGroup="mostrar" />
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </div>
&nbsp;
</asp:Content>
